import  {xsEntity} from '../commentity';

import { Column ,Entity, ManyToOne} from 'typeorm';
import { NovelPartEntity } from '../part/part';
import { UserEntity } from './user';
import { NovelEntity } from '../novel/novel';


/**
 * 描述
 */
@Entity()
export class PartinfoEntity extends xsEntity {
  @Column({ comment: '阅读时间' })
  time: number;

  @ManyToOne(() =>NovelEntity , NovelEntity => NovelEntity.id)
  novel: NovelEntity;
  @ManyToOne(() =>NovelPartEntity , NovelPartEntity => NovelPartEntity.times)
  part: NovelPartEntity;
  @ManyToOne(() =>UserEntity , UserEntity => UserEntity.active)
  user: UserEntity;
  

}
